package lwlk.model;
import lwlk.tools.PasswordHash;

import java.io.Serializable;
import java.math.*;
import java.util.Date;
import java.sql.Timestamp;

/*
* 
* gen by beetlsql 2017-06-15
*/
public class User   implements Serializable{
	private Integer id ;
	private String account ;
	private String password ;
	
	public User() {
	}
	
	public Integer getId(){
		return  id;
	}
	public void setId(Integer id ){
		this.id = id;
	}
	
	public String getAccount(){
		return  account;
	}
	public void setAccount(String account ){
		this.account = account;
	}
	
	public String getPassword(){
		return  password;
	}
	public void setPassword(String password ){
		this.password = password;
	}
	
	public User encodePassword() {

		password = PasswordHash.createHash(password);

		return this;
	}
}
